<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>刘诗雨的每日备忘录</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>刘诗雨的一天备忘录</h1>
            <p class="date-display" id="dateDisplay"></p>
        </header>

        <div class="main-content">
            <section class="task-form">
                <h2>添加新任务</h2>
                <form id="taskForm">
                    <div class="form-group">
                        <label for="taskTitle">任务标题</label>
                        <input type="text" id="taskTitle" placeholder="例如：完成数学作业" required>
                    </div>
                    <div class="form-group">
                        <label for="taskTime">时间</label>
                        <input type="time" id="taskTime" required>
                    </div>
                    <div class="form-group">
                        <label for="taskDescription">详细描述（可选）</label>
                        <textarea id="taskDescription" placeholder="添加更多细节..."></textarea>
                    </div>
                    <button type="submit">添加任务</button>
                </form>
            </section>

            <section class="tasks-list">
                <h2>今日任务</h2>
                <div class="filter-options">
                    <button class="filter-btn active" data-filter="all">全部</button>
                    <button class="filter-btn" data-filter="pending">待完成</button>
                    <button class="filter-btn" data-filter="completed">已完成</button>
                </div>
                <div id="tasksContainer" class="tasks-container">
                    <!-- 任务将通过JavaScript动态添加 -->
                </div>
            </section>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>